home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / applied / modify_command < prev    next >
Text File  |  2001-04-06  |  1KB  |  28 lines

  1. SYNOPSIS
  2.         int|string modify_command(string cmd)
  3.  
  4. DESCRIPTION
  5.         After set_modify_command(mob) was called for an interactive
  6.         object iob, all commands for that user will be passed to
  7.         mob->modify_command(), and the return will then be checked for
  8.         actions.
  9.  
  10.         If the result is a string, it is the new command to execute
  11.         instead of the given one. Note that it is not possible to
  12.         make several commands from one this way!
  13.         If the result is a non-zero number, the given command is to
  14.         be ignored. In case of the closure/lfun setting this may
  15.         mean that the closure/lfun already executed it.
  16.         If the result is 0, the originally given command is to be
  17.         used.
  18.  
  19. HISTORY
  20.         In 3.2.1@109 the name of the lfun to call must be specified
  21.         using the H_MODIFY_COMMAND_FNAME driver hook.
  22.         'modify_command' in the above text is therefore to read as
  23.         placeholder for the real name.
  24.  
  25.  
  26. SEE ALSO
  27.         set_modify_command(E), hooks(C)
  28.